<?xml version="1.0" encoding="utf-8"?>
<div xmlns="http://www.w3.org/1999/xhtml" component="$UI/system/components/justep/window/window" design="device:m;" xid="window" class="window">  
  <div component="$UI/system/components/justep/model/model" onModelConstruct="test" onLoad="modelLoad" onunLoad="modelUnLoad" xid="model" style="left:18px;top:83px;height:244px;"> 
  <div xid="fruitData" component="$UI/system/components/justep/data/data" idColumn="fID" autoLoad="true">
      <column label="ID" name="fID" type="String" />
      <column label="显示名称" name="fName" type="String" />
      <column label="重量" name="fWeight" type="Double" />
      <data>
        [{"fName":"苹果","fID":"apple","fWeight":100},
         {"fName":"梨","fID":"pear","fWeight":80},
         {"fName":"西瓜","fID":"watermelon","fWeight":1800},
         {"fName":"香蕉","fID":"banana","fWeight":3600}]
      </data>
    </div></div>  
    <div component="$UI/system/components/justep/labelEdit/labelEdit" class="x-label-edit x-label20">
    <label class="x-label" bind-text="fruitData.label('fWeight')"/>
    <input component="$UI/system/components/justep/input/input"
      class="form-control x-edit" bind-ref="fruitData.ref('fWeight')"/>
  </div>

  <div component="$UI/system/components/justep/panel/panel" 
    class="x-panel x-full" xid="panel1"> 
      <div class="x-panel-top" xid="top1"> 
        <div component="$UI/system/components/justep/titleBar/titleBar" title="标题"
          class="x-titlebar">
          <div class="x-titlebar-left"> 
            <a component="$UI/system/components/justep/button/button"
              label="" class="btn btn-link btn-only-icon" icon="icon-chevron-left"
              onClick="{operation:'window.close'}" xid="backBtn"> 
              <i class="icon-chevron-left"/>  
              <span></span> 
            </a> 
          </div>  
          <div class="x-titlebar-title">标题</div>  
          <div class="x-titlebar-right reverse"> 
          </div>
        </div> 
      </div>  
    <div class="x-panel-content" xid="content1"><a component="$UI/system/components/justep/button/button" class="btn btn-default" label="测试" xid="button1">
   <i xid="i1"></i>
   <span xid="span1">测试</span></a></div>
    <input component="$UI/system/components/justep/input/input" class="form-control"
          bind-ref="comp('fruitData').ref('fName')"/>
    
  </div> 
</div>